#! /bin/sh
export PATH="$PATH:$ANDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin"
if [ -d android_make ]; then
    echo "make directory existed!"
else
    mkdir android_make
fi
cd android_make

#../cmake/cmake-2.8.7-win32-x86/bin/cmake.exe -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="../cmake/android-cmake/toolchain/android.toolchain.cmake"  ..
#../cmake/cmake-2.8.11.2-win32-x86/bin/cmake.exe -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="../cmake/android-cmake/toolchain/android.toolchain.cmake"  ..
cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="../cmake/android-cmake/toolchain/android.toolchain.cmake"  ..
make
cd ..

cp lib/*.so android/libs/armeabi/

